package com.cms.admin.mapper;

import com.cms.admin.model.DepartmentList;
import com.cms.admin.model.DepartmentListExt;
import com.cms.admin.model.PageBean;

import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface DepartmentListMapper {
	

	int getRowCount(DepartmentListExt search);
    int deleteByPrimaryKey(Integer deptNo);
    int insert(DepartmentList record);
    int insertSelective(DepartmentList record);
    List<DepartmentList> getAllRows();
    List<DepartmentList> getCurrRoleAllRows(List<Integer> deptNos);
    List<DepartmentList> selectAllDepartmentList();
    List<DepartmentList> selectByCondition(DepartmentListExt search);
    List<DepartmentList> selectByPrimaryKey(DepartmentListExt search);
    int updateByPrimaryKey(DepartmentList record);
    int updateByPrimaryKeySelective(DepartmentList record);
    DepartmentList selectByName(String  deptName);

}